package com.gitee.swsk33.algorithms.tree.huffmantree;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 带权结点
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TreeNodeWithWeight<T> {

	/**
	 * 结点值
	 */
	private T data;

	/**
	 * 结点权重
	 */
	private int weight;

	/**
	 * 结点左孩子
	 */
	private TreeNodeWithWeight<T> left;

	/**
	 * 结点右孩子
	 */
	private TreeNodeWithWeight<T> right;

}